import fetch from 'utils/fetch';
/**
 * 账户管理
 */
//结算概况
export function countSettlementMoney(fSchoolId) {
    const data = {
        fSchoolId
    };
    return fetch({
        url: 'settlement/countSettlementMoney',
        method: 'post',
        data,
    });
}
//分页查询结算记录列表
export function pageSettlement(page,rows,fSchoolId,sBeginTime,sEndTime) {
    const data = {
        page,
        rows,
        fSchoolId,
        sBeginTime,
        sEndTime
    };
    return fetch({
        url: 'settlement/pageSettlement',
        method: 'post',
        data,
    });
}
//查询结算金额以及账户信息
export function countSettlementMoneyByTime(fSchoolId,sBeginTime,sEndTime) {
    const data = {
        fSchoolId,
        sBeginTime,
        sEndTime 
    };
    return fetch({
        url: 'settlement/countSettlementMoneyByTime',
        method: 'post',
        data,
    });
}
//根据id查询结算记录
export function getSettlementById(pId) {
    const data = {
        pId
    };
    return fetch({
        url: 'settlement/getSettlementById',
        method: 'post',
        data,
    });
}
//分页查询结算明细列表
export function pageSettlementDetail(page,rows,fSchoolId,sBeginTime,sEndTime) {
    const data = {
        page,
        rows,
        fSchoolId,
        sBeginTime,
        sEndTime
    };
    return fetch({
        url: 'settlement/pageSettlementDetail',
        method: 'post',
        data,
    });
}
//添加结算记录
export function saveSettlement(fSchoolId,sSchoolName,sBeginTime,sEndTime,sMoney,fBankId) {
    const data = {
        fSchoolId,
        sSchoolName,
        sBeginTime,
        sEndTime,
        sMoney,
        fBankId
    };
    return fetch({
        url: 'settlement/saveSettlement',
        method: 'post',
        data,
    });
}
//查询收入概况
export function countIncomeSettlementDetail(fSchoolId) {
    const data = {
        fSchoolId
    };
    return fetch({
        url: 'settlement/countIncomeSettlementDetail',
        method: 'post',
        data,
    });
}
//分页查询充值明细
export function pageIncomeSettlementDetail(page,rows,fSchoolId,sBeginTime,sEndTime,pipelineTypes) {
    const data = {
        page,
        rows,
        fSchoolId,
        sBeginTime,
        sEndTime,
        pipelineTypes
    };
    return fetch({
        url: 'settlement/pageIncomeSettlementDetail',
        method: 'post',
        data,
    });
}
//分页查询消费支出明细
export function pageExpenseSettlementDetail(page,rows,fSchoolId,sBeginTime,sEndTime) {
    const data = {
        page,
        rows,
        fSchoolId,
        sBeginTime,
        sEndTime
    };
    return fetch({
        url: 'settlement/pageExpenseSettlementDetail',
        method: 'post',
        data,
    });
}

